<%@ page import="java.util.Date"%>
<%--
  Created by IntelliJ IDEA.
  User: maoma
  Date: 2024/3/17
  Time: 12:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>动态注释</title>
</head>
<body>
<!-- <%=new Date()%> -->
<%!
    int i = 0;
    java.util.Date date = new java.util.Date();
    int add(int opt1, int opt2)
    {
        return opt1+opt2 ;
    }
%>


当前的系统日期为：<%=date %>
<br>
<%
       out.print(add(1,2));
        out.print("打印了" + i++ + "次<br>");
%>
<%=add(1,2)%>
</body>
</html>
